import request from '@/utils/request'

export function fetchList(params) {
    return request({
        url: '/menu/get_menu_list',
        method: 'get',
        params
    })
}
export function all_add(data) {
  return request({
    url: '/menu/all_add',
    method: 'post',
    data
  })
}

export function findOne(params) {
    return request({
        url: '/menu/get_menu',
        method: 'get',
        params
    })
}
export function update(data) {
    return request({
        url: '/menu/edit',
        method: 'post',
        data
    })
}
export function create(data) {
    return request({
        url: '/menu/add',
        method: 'post',
        data
    })
}
export function del(data) {
    return request({
        url: '/menu/del',
        method: 'post',
        data
    })
}
